# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xwininfo
pkgver=1.1.6
pkgrel=0
pkgdesc="Window information utility for X"
url="https://cgit.freedesktop.org/xorg/app/xwininfo"
arch="all"
license="MIT"
options="!check"  # No test suite.
makedepends="libx11-dev libxext-dev util-macros"
subpackages="$pkgname-doc"
source="https://www.x.org/releases/individual/app/xwininfo-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
c6df4ed3dcf97772450612f2786ecab8313a43bb78e0b8020cc9ec228b3f466f55090313ad02c8159a73a6892d117322ad85e28d9d76e38bb84c9750712c20bc  xwininfo-1.1.6.tar.xz
"
